package com.zyn.integral.service.Impl;

import com.zyn.integral.entity.Cars;
import com.zyn.integral.mapper.ShoppingCarMapper;
import com.zyn.integral.service.ShoppingCarsServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangyanan
 * @description
 * @date 2017/11/16 0016 0:17
 */
@Service
public class ShoppingCarsServerImpl implements ShoppingCarsServer {
    @Autowired
    private ShoppingCarMapper shoppingCarMapper;

    @Override
    public List<Cars> selectCar() {
        return shoppingCarMapper.selectAll();
    }

    @Override
    public int addCar(Cars cars) {
        return shoppingCarMapper.insertSelective(cars);
    }
}
